﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="TU_Role.aspx.cs" Inherits="JOIN.Rights.Apps.TU_Role" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="../Scripts/editPage.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- Add.aspx -->
    <ajaxToolkit:ToolkitScriptManager ID="scriptmanager1" runat="server" />
    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="InputTable">
        <tr>
            <td height="25" width="30%" align="right" class="InputLabel">
                角色ID：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtRoleID" runat="server" />
                <asp:Label ID="lblID" runat="server" Style="display: none;" />
            </td>
            <td height="25" width="30%" align="right" class="InputLabel">
                角色名：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtRoleName" runat="server" />
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right" class="InputLabel">
                描述：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtRoleDesc" runat="server" />
            </td>
            <td height="25" width="30%" align="right" class="InputLabel">
                项目：
            </td>
            <td height="25" width="*" align="left">
                <Kevin:CodeNameSelect ID="cnsProject" runat="server" ServicePath="~/Services/CodeNameService.asmx"
                    ServiceMethod="GetProjects" MinimumPrefixLength="0" />
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <input id="btnSave" value="保存" type="button" class="btn" />&nbsp;&nbsp;<input id="btnDel"
                    value="删除" type="button" class="btn" />
            </td>
        </tr>
    </table>
    <div>
    </div>
    <Kevin:DataBind ID="databind1" runat="server" ServicePath="~/Services/BLLService.asmx"
        ServiceMethod="RoleService" ClientDataBind="true">
        <CommandItems>
            <Kevin:CommandItem ControlID="btnSave" CommandType="Save" ServiceMethod="RoleService"
                CallbackMethod="$editPage.close" />
            <Kevin:CommandItem ControlID="btnDel" CommandType="Del" ServiceMethod="RoleService"
                CallbackMethod="$editPage.close" />
        </CommandItems>
        <BindItems>
            <Kevin:DataBindItem ControlID="lblID" DataPropertyName="ID" IsPrimary="true" />
            <Kevin:DataBindItem ControlID="txtRoleID" DataPropertyName="RoleID" />
            <Kevin:DataBindItem ControlID="txtRoleName" DataPropertyName="RoleName" />
            <Kevin:DataBindItem ControlID="txtRoleDesc" DataPropertyName="RoleDesc" />
            <Kevin:DataBindItem ControlID="cnsProject" DataPropertyName="ProjectID" ControlPropertyName="Value"
                GetValueClientMethod="_getCodeNameSelectValue" />
        </BindItems>
    </Kevin:DataBind>
</asp:Content>
